//
//  MyTeamCell.m
//  digitalCurrency
//
//  Created by 小震GG on 2019/11/19.
//  Copyright © 2019 XinHuoKeJi. All rights reserved.
//

#import "MyTeamCell.h"

@implementation MyTeamCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        
        self.backgroundColor = [UIColor clearColor];
        self.selectionStyle = NO;
        
        [self setView];
    }
    
    return self;
}

- (void)setView{
    
    self.LB1 = [[UILabel alloc]init];
    [self addSubview:self.LB1];
    [self.LB1 mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(16);
        make.centerY.equalTo(0);
    }];
    self.LB1.font = kFont(16);
    self.LB1.textColor = tThreeColor;
    
    self.LB2 = [[UILabel alloc]init];
    [self addSubview:self.LB2];
    [self.LB2 mas_makeConstraints:^(MASConstraintMaker *make) {
        make.center.equalTo(0);
    }];
    self.LB2.font = kFont(16);
    self.LB2.textColor = tThreeColor;
    
    self.LB3 = [[UILabel alloc]init];
    [self addSubview:self.LB3];
    [self.LB3 mas_makeConstraints:^(MASConstraintMaker *make) {
        make.right.equalTo(-16);
        make.centerY.equalTo(0);
    }];
    self.LB3.font = kFont(16);
    self.LB3.textColor = tThreeColor;
    
    UIView *lineView = [[UIView alloc]init];
    [self addSubview:lineView];
    [lineView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(16);
        make.right.equalTo(-16);
        make.bottom.equalTo(0);
        make.height.equalTo(0.5);
    }];
    lineView.backgroundColor = tTableViewCellLine;
}

- (void)upDataModel:(NSDictionary *)model indexInt:(NSInteger)indexInt
{
    if (indexInt == 0) {
        self.LB1.font = kFont(14);
        self.LB1.textColor = tSixColor;
        self.LB2.font = kFont(14);
        self.LB2.textColor = tSixColor;
        self.LB3.font = kFont(14);
        self.LB3.textColor = tSixColor;
        self.LB1.text = LocalizationKey(@"代数");
        self.LB2.text = LocalizationKey(@"总人数");
        self.LB3.text = LocalizationKey(@"业绩（CT）");

    }
    else{
        self.LB1.font = kFont(16);
        self.LB1.textColor = tThreeColor;
        self.LB2.font = kFont(16);
        self.LB2.textColor = tThreeColor;
        self.LB3.font = kFont(16);
        self.LB3.textColor = tThreeColor;
        
        self.LB1.text = [NSString stringWithFormat:@"%@12",model[@""]];
        self.LB2.text = [NSString stringWithFormat:@"%@23",model[@""]];
        self.LB3.text = [NSString stringWithFormat:@"%@34",model[@""]];
    }

}
- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
